#include "link_temp_id_qid_task.h"

#include "base/logging.h"
#include "im/adapters/session_adapter.h"

namespace imserver {

void LinkTempIdQidTask::run() {
  if (0 == SessionAdapter::Instance().LinkTempIdQid(temp_id_, qid_, 2)) {
    LOG_DEBUG("LinkTempIdQidTask temp_id=" << temp_id_ << " qid=" << qid_ << " ok.");
  } else {
    LOG_WARN("LinkTempIdQidTask temp_id=" << temp_id_ << " qid=" << qid_ << " err.");
  }
}

}


